import { createRoot } from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
import "@/assets/style/reset.scss";
import App from "./App.jsx";
import { Provider } from "react-redux";
import store from "@/store";
import "bpmn-js/dist/assets/diagram-js.css"; // 左边工具栏以及编辑节点的样式
import "bpmn-js/dist/assets/bpmn-font/css/bpmn.css";
import "bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css";
import "bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";
import "bpmn-js-properties-panel/dist/assets/bpmn-js-properties-panel.css"; // 右边工具栏样式

console.log("当前环境: " + import.meta.env.MODE);
console.log("API地址: " + import.meta.env.VITE_API_URL);
createRoot(document.getElementById("root")).render(
  <Provider store={store}>
    <BrowserRouter>
      <App />
    </BrowserRouter>
  </Provider>
);
